@layout("/common/_container.html"){

<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>意向客户信息管理</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-sm-2">
                                <#NameCon id="userName" name="姓名" />
                            </div>
                            <div class="col-sm-3">
                                <#NameCon id="userPhone" name="手机号" />
                            </div>
                            <div class="col-sm-3">
                                <#NameCon id="address"  name="地址" />
                            </div>
                            <div class="col-sm-2">
                                <#button name="搜索" icon="fa-search" clickFun="UserInfo.search()"/>
                            </div>
                        </div>
                        <div class="hidden-xs" id="UserInfoTableToolbar" role="group">
                            @if(shiro.hasPermission("/userInfo/add")){
                              <#button name="录入客户信息" icon="fa-plus" clickFun="UserInfo.openAddUserInfo()"/>
                            @}
                            @if(shiro.hasPermission("/userInfo/update")){
                              <#button name="修改客户信息" icon="fa-plus" clickFun="UserInfo.openUserInfoDetail()" space="true"/>
                            @}

                            @if(shiro.hasPermission("/userInfo/updateOrder")){
                              <#button name="客户下单" icon="fa-plus" clickFun="UserInfo.openOrderDetail()" space="true"/>
                            @}

                            @if(shiro.hasPermission("/userInfo/delete")){
                              <#button name="删除" icon="fa-plus" clickFun="UserInfo.delete()" space="true"/>
                            @}

                            @if(shiro.hasPermission("/userInfo/import")){

                            @}

                            <#button name="导入客户信息" icon="fa-plus" clickFun="UserInfo.import()" space="true"/><!-- 导入按钮 -->

                        </div>
                        <!-- action="/userInfo/import"  -->
                        <div id="importBox" class="hide">
                            <form id="importForm"  method="post"  enctype="multipart/form-data"
                                  style="padding-left:20px;text-align:center;"> <br/>
                                <input id="file" name="file" type="file" style="width:330px" />
                                导入文件不能超过5M，仅允许导入“xls”或“xlsx”格式文件！<br/>　　
                            </form>
                        </div>

                        <#table id="UserInfoTable"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="${ctxPath}/static/modular/biz/userInfo/userInfo.js"></script>
@}
